//
//  MapTool.m
//  Kjs-iOS
//
//  Created by cfq on 16/6/3.
//  Copyright © 2016年 jmhz. All rights reserved.
//

#import "MapTool.h"

@implementation MapTool
+(CGFloat)calculateLabelHeightWithWidth:(CGFloat)widthOfLabel contentText:(NSString *)content font:(UIFont *)contentFont{

    CGRect frame = [content boundingRectWithSize:CGSizeMake(widthOfLabel, CGFLOAT_MAX)
                                         options:NSStringDrawingUsesLineFragmentOrigin
                                      attributes:@{NSFontAttributeName:contentFont}
                                         context:nil];
    return frame.size.height +4;
}
@end
